<?php

namespace App\Models\Operate;

use App\Models\Operate\BannerData;
use Illuminate\Database\Eloquent\Model;

class Banners extends Model
{
    protected $table = 'banners';

    protected $fillable = [
        'img','is_show','type','sort'
    ];

    //获取banner 跳转数据
    public function bdata()
    {
        return $this->hasOne(BannerData::class,'banners_id','id');
    }
}
